The value returned by the QTVRGetCurrentMouseMode function is an unsigned long integer that encodes the current mouse control modes. If a bit in the integer is set, the corresponding mode is one of the current mouse modes. The mode bits are addressed using these constants:
enum {
kQTVRPanning = 1L << 0,
kQTVRTranslating = 1L << 1,
kQTVRZooming = 1L << 2,
kQTVRScrolling = 1L << 3,
kQTVRSelecting = 1L << 4
};
Notice that several modes can be returned. That means a return value could have both zooming and translating set, for example.
| Previous | Chapter Contents | Chapter Top | Next |